import httpInstance from "@/utils/http"

// 用户登录
export const loginAPI = ({ account, password }) => {
    return httpInstance({
        method: 'POST',
        url: '/login',
        data: {
            account,
            password
        }
    })
}

// 猜你喜欢列表
export const getLikeListAPI = ({ limit = 4 }) => {
  return httpInstance({
    url:'/goods/relevant',
    params: {
      limit 
    }
  })
}

// 我的订单
export const getUserOrder = (params) => {
  return httpInstance({
    url:'/member/order',
    params
  })
}